<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">
	
	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
	
	<?php if (is_search()) { ?>
	   <meta name="robots" content="noindex, nofollow" /> 
	<?php } ?>

	<title>
		   <?php
		      if (function_exists('is_tag') && is_tag()) {
		         single_tag_title("Tag Archive for &quot;"); echo '&quot; - '; }
		      elseif (is_archive()) {
		         wp_title(''); echo ' Archive - '; }
		      elseif (is_search()) {
		         echo 'Search for &quot;'.wp_specialchars($s).'&quot; - '; }
		      elseif (!(is_404()) && (is_single()) || (is_page())) {
		         wp_title(''); echo ' - '; }
		      elseif (is_404()) {
		         echo 'Not Found - '; }
		      if (is_home()) {
		         bloginfo('name'); echo ' - '; bloginfo('description'); }
		      else {
		          bloginfo('name'); }
		      if ($paged>1) {
		         echo ' - page '. $paged; }
		   ?>
	</title>
	
	<link rel="shortcut icon" href="<?php bloginfo('template_url'); ?>/images/favicon.ico" type="image/x-icon" />
	
	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" />
	<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/default/default.css" type="text/css" />
	<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/nivo-slider.css" type="text/css" />
	
	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  
  <script type='text/javascript' src='<?php bloginfo('template_url') ?>/js/jquery.min.js'></script>
  <script type='text/javascript' src='<?php bloginfo('template_url') ?>/js/jquery.utilities.min.js'></script>
  <script type='text/javascript' src='<?php bloginfo('template_url') ?>/js/jquery.nivo.slider.js'></script>
  <script type='text/javascript' src='<?php bloginfo('template_url') ?>/js/jquery.hoverizr.min.js'></script>
  <script type='text/javascript' src='<?php bloginfo('template_url') ?>/js/grayscale.js'></script>
  <script type='text/javascript' src='<?php bloginfo('template_url') ?>/js/jquery.bxSlider.min.js'></script>

	<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

	<?php wp_head(); ?>
	
</head>

<script type="text/javascript">
  $(function() {
    $('.main-menu ul li a').click(function(event){
      $('.main-menu ul li').removeClass('active');
      $(this).parent().addClass('active');
    
      var anchor = $(this);
      $('html, body').stop().animate({
          scrollTop: $($(this).attr('href')).offset().top-178
      }, 1000);
      event.preventDefault();
    });
    
    $('.logo a').click(function(event){
      $('.main-menu ul li').removeClass('active');
      
      var anchor = $(this);
      $('html, body').stop().animate({
          scrollTop: $($(this).attr('href')).offset().top-178
      }, 1000);
      event.preventDefault();
    });
  });
  
  $(document).ready(function(){
    $('#slider').nivoSlider({
      directionNav: false,
    });
    
    // hack for checking hash
    hash = window.location.hash;
    hash_id = hash.replace('#','');
    $('#menu-'+hash_id).addClass('active');
  });
</script>

<body <?php body_class(); ?>>
	
	<div class="wrapper">

    <div class="header">
      <div class="logo">
        <a href="#home"><img src="<?php bloginfo('template_url') ?>/images/logo.png" /></a>
      </div>
      <div class="main-menu">
        <ul>
          <li id="menu-products">
            <a href="#products">Our Products</a>
          </li>
          <li id="menu-contact">
            <a href="#contact">Contact</a>
          </li>
          <li id="menu-about">
            <a href="#about">About Fresh</a>
          </li>
          <li id="menu-news">
            <a href="<?php bloginfo('url') ?>/category/news">News</a>
          </li>
          <li id="menu-faq">
            <a href="<?php bloginfo('url') ?>/category/faq">FAQ</a>
          </li>
        </ul>
      </div>
    </div>